import request from '@/utils/request';
export function login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}
export function getInfo() {
  return request({
    url: '/user/loginInfo',
    method: 'get'
  })
}



/**
 * 退出登录
 */
export function logout() {
  return request.post('/user/loginOut');
}


/**
 * 获取验证码图片
 * @returns imgData
 */
export function getKanptcha() {
  return request.get('/user/validateCode');
}
